$('h3').on('click',function(){
    $(this).next().slideToggle(200)
 })
 let arr=JSON.parse(localStorage.getItem('Cart'))
 console.log(arr)
 $('.box1 img').attr('src',arr.headerimg)
 $('.box1 span').html(arr.username)
 //退出
 $('.reit').on('click',function(){
     $.ajax({
         type:'get',
         url:' http://localhost:8088/api/logout',
         data:{},
         success:function(list){
         console.log(list)
        
         location.href='./登录.html'
         },
         error:function(err){
             console.log('错误')
         }
     }) 
 })

 